package com.hydra.framework.util;

/**
 * Created by hasee on 2017/7/22.
 *
 */
public class StringUtil {

    public static String combineStr(Object...objects) {
        StringBuilder sb = new StringBuilder();

        for(Object object : objects) {
            sb.append(object.toString());
        }

        return sb.toString();
    }

    public static String safeCombineStr(Object...objects) {
        StringBuilder sb = new StringBuilder();

        for(Object object : objects) {
            sb.append(object == null ? "" : object.toString());
        }

        return sb.toString();
    }
}
